package com.cxhc.system.domain.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

public class ExaminationQuestion {

    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 题目 */
    private String title;

    /** 答案A */
    private String optionA;

    /** 答案B */
    private String optionB;

    /** 答案C */
    private String optionC;

    /** 答案S */
    private String optionD;

    /** 答案 */
    private char answer;

    /** 分数 */
    private float score;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createAt;

    /** 最新更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonIgnore
    private Date updateAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public char getAnswer() {
        return answer;
    }

    public void setAnswer(char answer) {
        this.answer = answer;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ExaminationQuestion{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", optionA='").append(optionA).append('\'');
        sb.append(", optionB='").append(optionB).append('\'');
        sb.append(", optionC='").append(optionC).append('\'');
        sb.append(", optionD='").append(optionD).append('\'');
        sb.append(", answer=").append(answer);
        sb.append(", score=").append(score);
        sb.append(", createAt=").append(createAt);
        sb.append(", updateAt=").append(updateAt);
        sb.append('}');
        return sb.toString();
    }
}
